﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Skipette
{
    public partial class NewCat : Form
    {
        FormMain fm;
        public NewCat(FormMain fm)
        {
            this.fm = fm;
            InitializeComponent();
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void buttonOk_Click(object sender, EventArgs e)
        {
            fm.AddCategory(textBox1.Text);
            this.Close();
        }
    }
}
